"""
配置信息
"""

import os.path
import configparser


BASE_DIR = os.path.dirname(os.path.dirname(__file__))


CONFIG_PATH_DIR = os.path.join(BASE_DIR, "settings.ini")


DB_DIR = os.path.join(BASE_DIR, "db")


config = configparser.ConfigParser()
config.read(CONFIG_PATH_DIR, encoding="utf-8-sig")

LOGIN_TYPE = config.get("USER", "LOGIN_TYPE")
LOGIN_USER = config.get("USER", "LOGIN_USER")


if __name__ == "__main__":
    print(BASE_DIR)
    print(os.path.abspath(__file__))
    print(CONFIG_PATH_DIR)
